package com.example.base.domain.studentPack;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author jinlibo
 * @date 2024/02/23
 */
@NoArgsConstructor
@AllArgsConstructor(staticName = "of")
@Data
@TableName("student")
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer stuNum;
    private String name;
    @TableField(exist = false)
    private Grade grade;
    @TableField(exist = false)
    private List<Course> courses;
}
